package com.linewow.xhyy.nihaonew.entity.user;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by LXR on 2016/10/12.
 */
public class UserInfoChange implements Parcelable {
    /**
     * nickname : liu25
     * birthday : 1992.10.22
     * gender : 1
     * location : 阿根廷
     * head_img : https://m.en1on1.com/upload/avatar/1/1262_w144.jpg?t=1476089192
     */

    public String nickname;
    public String birthday;
    public String gender;
    public String location;
    public String head_img;

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.nickname);
        dest.writeString(this.birthday);
        dest.writeString(this.gender);
        dest.writeString(this.location);
        dest.writeString(this.head_img);
    }

    public UserInfoChange() {
    }

    protected UserInfoChange(Parcel in) {
        this.nickname = in.readString();
        this.birthday = in.readString();
        this.gender = in.readString();
        this.location = in.readString();
        this.head_img = in.readString();
    }

    public static final Parcelable.Creator<UserInfoChange> CREATOR = new Parcelable.Creator<UserInfoChange>() {
        @Override
        public UserInfoChange createFromParcel(Parcel source) {
            return new UserInfoChange(source);
        }

        @Override
        public UserInfoChange[] newArray(int size) {
            return new UserInfoChange[size];
        }
    };
}
